package com.mecol.library.service;

import com.mecol.library.entity.Lend;
import com.mecol.library.entity.LendSearch;
import com.mecol.library.util.ResultUtil;

import java.util.Date;

public interface LendService {
    ResultUtil getAllLendList(Integer page, Integer limit, LendSearch search);

    Lend getLendById(int ser_num);

    void updateLend(Lend lend);

    void deleteLendById(int ser_num);

    void insertNewLend(Long book_id, Long  user_id, Date lend_date);

    ResultUtil getMyLendList(Integer page, Integer limit,Long user_id);
}
